<?php
	if(!isset($_SESSION['user_id']))
	{
		header("Location:../index.php");
	}
	if(!isset($_SESSION['city']) || !isset($_SESSION['dob']) || !isset($_SESSION['gender']))
	{
		header("Location:../index.php");
	}


?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta name="Description" content="..." />
    <meta name="Keywords" content="..." />
    <meta name="robots" content="all,follow" />
    <meta name="author" content="Cynosure Web Solutions" />
    <meta name="copyright" content="Cynosure Web Solutions" />
    <meta http-equiv="Content-Script-Type" content="text/javascript" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- CSS -->
    <link rel="stylesheet" href="view/css/style.css" type="text/css" media="screen, projection, tv" />
    <!--[if lt IE 8]>
		<div style=' clear: both; text-align:center; position: relative;z-index:100;'>
			<a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode"><img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /></a>
		</div>
	<![endif]-->
    <link rel="stylesheet" href="view/css/style-print.css" type="text/css" media="print" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <title>Vault Empire</title>

    <script src="view/js/jquery.min.js"></script>

    <script src="view/js/script.js"></script>
    <!--<Select_controls>-->
	<script type="text/javascript" src="view/js/bsn.AutoSuggest_2.1.3.js" charset="utf-8"></script>
    <link rel="stylesheet" href="view/css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" />

    <script type='text/javascript'><!--
			$(document).ready(function() {
				enableSelectBoxes();
				initUpload();
				$("input:radio").click(function()
				{
					if($(this).attr('id') == "Radio12" && $(this).val() != "public")
					{
						$("#musicCategory").hide();
					}
					else
					{
						$("#musicCategory").show();
					}
					if($(this).attr('id') == "Radio13" && $(this).val() != "public")
					{
						$("#videoCategory").hide();
					}
					else
					{
						$("#videoCategory").show();
					}
					if($(this).attr('id') == "Radio14" && $(this).val() != "public")
					{
						$("#imageCategory").hide();
					}
					else
					{
						$("#imageCategory").show();
					}
					if($(this).attr('id') == "Radio15" && $(this).val() != "public")
					{
						$("#docCategory").hide();
					}
					else
					{
						$("#docCategory").show();
					}
				});
				
			});
			
			
			function initUpload() 
			{
			   /*set the target of the form to the iframe and display the status
				  message on form submit.
			  */
				document.getElementById('uploadform').onsubmit=function()
				{
					document.getElementById('uploadform').target = 'target_iframe';
				}
				
				document.getElementById('uploadVideoform').onsubmit=function()
				{
					document.getElementById('uploadVideoform').target = 'target_iframe1';
				}
				
				document.getElementById('uploadImageForm').onsubmit=function()
				{
					document.getElementById('uploadImageForm').target = 'target_iframe2';
				}
				document.getElementById('uploadDocumentForm').onsubmit=function()
				{
					document.getElementById('uploadDocumentForm').target = 'target_iframe3';
				}
			}
			
			function uploadComplete(answer,title,comment,privacy,category)
			{
				$("#musicUploadStatus").fadeIn();
				$("#musicUploadStatus").html(answer);
				$("#musicUploadStatus").fadeOut(5000);
				if(answer.indexOf("success") != -1)
				{
					$('#statusList').prepend($("<div class='maincmtbox'><div class='topholder'><div class='cname'><a href='' class='linkname'><?php echo $_SESSION['fullname']; ?></a></div></div><div class='cmtbox'></div><div class='cmntbox'><div class='promoboxbody'><span>"+title+"</span><div class='views'>"+comment+"</div><img alt='' src='view/img/icons/mp3.png' /></div></div><div class='ldscbox'><span class='spn'><a href='#a'>Like</a></span><span class='spn'><a href='#a'>Dislike</a></span><span class='spn'><a href='#a'>Share</a></span><span class='spn'><a href='#a' >Comment</a></span><div class='cnamedetails'>"+privacy+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 minutes ago <a href=''></a></div></div></div><div class='subcommented'></div><div class='subcomment'><div class='commenta'><div class='cmtboxsub'></div><textarea id='comment' cols='20' rows='1' class='textareainner' placeholder='Write here !!!'></textarea></div></div>").hide().fadeIn('slow'));
				}
				$("#file").val('');
				$("#audioTitle").val('');
				$("#textarea3").val('');
				$("#Submit1").fadeOut();
				$("#textfield1").val('');
			}
			
			
			function enableSelectBoxes(){
				$('div.selectBox').each(function(){
					$(this).children('span.selected').html($(this).children('div.selectOptions').children('span.selectOption:first').html());
					$(this).attr('value',$(this).children('div.selectOptions').children('span.selectOption:first').attr('value'));
					
					$(this).children('span.selected,span.selectArrow').click(function(){
						if($(this).parent().children('div.selectOptions').css('display') == 'none'){
							$(this).parent().children('div.selectOptions').css('display','block');
						}
						else
						{
							$(this).parent().children('div.selectOptions').css('display','none');
						}
					});
					
					$(this).find('span.selectOption').click(function(){
						$(this).parent().css('display','none');
						$(this).closest('div.selectBox').attr('value',$(this).attr('value'));
						$(this).parent().siblings('span.selected').html($(this).html());
					});
				});				
			}
			
			
			function videoUploadComplete(answer,title,comment,privacy,category)
			{
				$("#videoUploadStatus").fadeIn();
				$("#videoUploadStatus").html(answer);
				$("#videoUploadStatus").fadeOut(5000);
				if(answer.indexOf("success") != -1)
				{
					$('#statusList').prepend($("<div class='maincmtbox'><div class='topholder'><div class='cname'><a href='' class='linkname'><?php echo $_SESSION['fullname']; ?></a></div></div><div class='cmtbox'></div><div class='cmntbox'><div class='promoboxbody'><span>"+title+"</span><div class='views'>"+comment+"</div><img alt='' src='view/img/icons/video.png' /></div></div><div class='ldscbox'><span class='spn'><a href='#a'>Like</a></span><span class='spn'><a href='#a'>Dislike</a></span><span class='spn'><a href='#a'>Share</a></span><span class='spn'><a href='#a' >Comment</a></span><div class='cnamedetails'>"+privacy+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 minutes ago <a href=''></a></div></div></div><div class='subcommented'></div><div class='subcomment'><div class='commenta'><div class='cmtboxsub'></div><textarea id='comment' cols='20' rows='1' class='textareainner' placeholder='Write here !!!'></textarea></div></div>").hide().fadeIn('slow'));			
				}
				$("#videofile").val('');
				$("#videoTitle").val('');
				$("#textarea4").val('');
				$("#Submit3").fadeOut();
				$("#videotextfield1").val('');
			}

			function imageUploadComplete(answer,title,comment,url,privacy,category)
			{
				var path = "view/tmp/<?php echo $_SESSION['user_id']?>/image/"+url;
				$("#imageUploadStatus").fadeIn();
				$("#imageUploadStatus").html(answer);
				$("#imageUploadStatus").fadeOut(5000);
				if(answer.indexOf("success") != -1)
				{
					$('#statusList').prepend($("<div class='maincmtbox'><div class='topholder'><div class='cname'><a href='' class='linkname'><?php echo $_SESSION['fullname']; ?></a></div></div><div class='cmtbox'></div><div class='cmntbox'><div class='promoboxbodymid'><img alt='' src='"+path+"' class='postcontentimg'/></div></div><div class='postcontent'><img alt='' src='view/img/icons/pics.png' align='middle' style='float:left'/><div class='filename'>"+title+"</div><br clear='all'/><div class='commenttextinner'>"+comment+"</div></div><div class='ldscbox'><span class='spn'><a href='#a'>Like</a></span><span class='spn'><a href='#a'>Dislike</a></span><span class='spn'><a href='#a'>Share</a></span><span class='spn'><a href='#a' onclick='$(\"#comment\").focus();'>Comment</a></span><div class='cnamedetails'>"+privacy+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 minutes ago <a href=''></a></div></div></div><div class='subcommented'></div><div class='subcomment'><div class='commenta'><div class='cmtboxsub'></div><textarea id='comment' cols='20' rows='1' class='textareainner' placeholder='Write here !!!'></textarea></div></div> ").hide().fadeIn('slow'));			
				}
				$("#imageFile").val('');
				$("#imageTitle").val('');
				$("#textarea5").val('');
				$("#Submit4").fadeOut();
				$("#textfield3").val('');
			}
			
			function docUploadComplete(answer,title,comment,url,type,privacy,category)
			{
				$("#docUploadStatus").fadeIn();
				$("#docUploadStatus").html(answer);
				$("#docUploadStatus").fadeOut(5000);
				var path = "view/tmp/<?php echo $_SESSION['user_id']?>/image/"+url;
				if(answer.indexOf("success") != -1)
				{
					if(type == "image")
					{
						$('#statusList').prepend($("<div class='maincmtbox'><div class='topholder'><div class='cname'><a href='' class='linkname'><?php echo $_SESSION['fullname']; ?></a></div></div><div class='cmtbox'></div><div class='cmntbox'><div class='promoboxbodymid'><img alt='' src='"+path+"' class='postcontentimg'/></div></div><div class='postcontent'><img alt='' src='view/img/icons/pics.png' align='middle' style='float:left'/><div class='filename'>"+title+"</div><br clear='all'/><div class='commenttextinner'>"+comment+"</div></div><div class='ldscbox'><span class='spn'><a href='#a'>Like</a></span><span class='spn'><a href='#a'>Dislike</a></span><span class='spn'><a href='#a'>Share</a></span><span class='spn'><a href='#a' onclick='$(\"#comment\").focus();'>Comment</a></span><div class='cnamedetails'>"+privacy+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 minutes ago <a href=''></a></div></div></div><div class='subcommented'></div><div class='subcomment'><div class='commenta'><div class='cmtboxsub'></div><textarea id='comment' cols='20' rows='1' class='textareainner' placeholder='Write here !!!'></textarea></div></div> ").hide().fadeIn('slow'));	
					}
					else if(type == "music")
					{
						$('#statusList').prepend($("<div class='maincmtbox'><div class='topholder'><div class='cname'><a href='' class='linkname'><?php echo $_SESSION['fullname']; ?></a></div></div><div class='cmtbox'></div><div class='cmntbox'><div class='promoboxbody'><span>"+title+"</span><div class='views'>"+comment+"</div><img alt='' src='view/img/icons/mp3.png' /></div></div><div class='ldscbox'><span class='spn'><a href='#a'>Like</a></span><span class='spn'><a href='#a'>Dislike</a></span><span class='spn'><a href='#a'>Share</a></span><span class='spn'><a href='#a' >Comment</a></span><div class='cnamedetails'>"+privacy+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 minutes ago <a href=''></a></div></div></div><div class='subcommented'></div><div class='subcomment'><div class='commenta'><div class='cmtboxsub'></div><textarea id='comment' cols='20' rows='1' class='textareainner' placeholder='Write here !!!'></textarea></div></div>").hide().fadeIn('slow'));
					}
					else if(type == "video")
					{
						$('#statusList').prepend($("<div class='maincmtbox'><div class='topholder'><div class='cname'><a href='' class='linkname'><?php echo $_SESSION['fullname']; ?></a></div></div><div class='cmtbox'></div><div class='cmntbox'><div class='promoboxbody'><span>"+title+"</span><div class='views'>"+comment+"</div><img alt='' src='view/img/icons/video.png' /></div></div><div class='ldscbox'><span class='spn'><a href='#a'>Like</a></span><span class='spn'><a href='#a'>Dislike</a></span><span class='spn'><a href='#a'>Share</a></span><span class='spn'><a href='#a' >Comment</a></span><div class='cnamedetails'>"+privacy+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 minutes ago <a href=''></a></div></div></div><div class='subcommented'></div><div class='subcomment'><div class='commenta'><div class='cmtboxsub'></div><textarea id='comment' cols='20' rows='1' class='textareainner' placeholder='Write here !!!'></textarea></div></div>").hide().fadeIn('slow'));
					}
					else
					{
						$('#statusList').prepend($("<div class='maincmtbox'><div class='topholder'><div class='cname'><a href='' class='linkname'><?php echo $_SESSION['fullname']; ?></a></div></div><div class='cmtbox'></div><div class='cmntbox'><div class='promoboxbody'><span>"+title+"</span><div class='views'>"+comment+"</div><img alt='' src='view/img/icons/doc.png' /></div></div><div class='ldscbox'><span class='spn'><a href='#a'>Like</a></span><span class='spn'><a href='#a'>Dislike</a></span><span class='spn'><a href='#a'>Share</a></span><span class='spn'><a href='#a' onclick='$(\"#comment\").focus();'>Comment</a></span><div class='cnamedetails'>"+privacy+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 minutes ago <a href=''></a></div></div></div><div class='subcommented'></div><div class='subcomment'><div class='commenta'><div class='cmtboxsub'></div><textarea id='comment' cols='20' rows='1' class='textareainner' placeholder='Write here !!!'></textarea></div></div>").hide().fadeIn('slow'));		
					}
				$("#docFile").val('');
				$("#docTitle").val('');
				$("#textarea6").val('');
				$("#Submit5").fadeOut();
				$("#textfield4").val('');
				}
			}
			
			function enableSelectBoxes(){
				$('div.selectBox').each(function(){
					$(this).children('span.selected').html($(this).children('div.selectOptions').children('span.selectOption:first').html());
					$(this).attr('value',$(this).children('div.selectOptions').children('span.selectOption:first').attr('value'));
					
					$(this).children('span.selected,span.selectArrow').click(function(){
						if($(this).parent().children('div.selectOptions').css('display') == 'none'){
							$(this).parent().children('div.selectOptions').css('display','block');
						}
						else
						{
							$(this).parent().children('div.selectOptions').css('display','none');
						}
					});
					
					$(this).find('span.selectOption').click(function(){
						$(this).parent().css('display','none');
						$(this).closest('div.selectBox').attr('value',$(this).attr('value'));
						$(this).parent().siblings('span.selected').html($(this).html());
					});
				});				
			}
    </script>

    <!--</controls>-->

    <script type="text/javascript" src="view/js/jquery.autoresize.js"></script>

    <script type="text/javascript" language="javascript">
     $(document).ready(function() {
		 var options = {
				script:"view/test.php?json=true&limit=6&",
				varname:"input",
				json:true,
				shownoresults:false,
				maxresults:10,
				callback: function (obj) {document.getElementById('testid').value = obj.id;}
			};
			
			var options1 = {
				script:"view/test.php?json=true&limit=6&",
				varname:"input",
				json:true,
				shownoresults:false,
				maxresults:10,
				callback: function (obj) {document.getElementById('videotestid').value = obj.id;}
			};
			
			var options2 = {
				script:"view/test.php?json=true&limit=6&",
				varname:"input",
				json:true,
				shownoresults:false,
				maxresults:10,
				callback: function (obj) {document.getElementById('imagetestid').value = obj.id;}
			};
			
			var options3 = {
				script:"view/test.php?json=true&limit=6&",
				varname:"input",
				json:true,
				shownoresults:false,
				maxresults:10,
				callback: function (obj) {document.getElementById('testid').value = obj.id;}
			};
			var as_json = new bsn.AutoSuggest('testinput', options);
			var as_json1 = new bsn.AutoSuggest('videotestinput', options1);
			var as_json2 = new bsn.AutoSuggest('imagetestinput', options2);
			var as_json3 = new bsn.AutoSuggest('doctestinput', options3);
			
          $('#mytextbox').focus(function() {
               $(this).animate({width: '350px'}, 500);
          });
 
          $('#mytextbox').blur(function() {
               $(this).animate({width: '160px'}, 500);
          });
     });
    </script>

    <!--<tabbed_menu>-->
    <link rel="stylesheet" type="text/css" href="view/tabbed_menu_css/tabcontent.css" />

    <script type="text/javascript" src="view/tabbed_menu_js/tabcontent.js"></script>

    <!--</tabbed_End>-->
    <!--<Menu>-->

    <script type="text/javascript">
        $(document).ready(function() {
            $(".dropdown img.flag").addClass("flagvisibility");

            $(".dropdown dt a").click(function() {
                $(".dropdown dd ul").toggle();
            });
                        
            $(".dropdown dd ul li a").click(function() {
                var text = $(this).html();
                $(".dropdown dt a span").html(text);
                $(".dropdown dd ul").hide();
                $("#result").html("Selected value is: " + getSelectedValue("sample"));
            });
                        
            function getSelectedValue(id) {
                return $("#" + id).find("dt a span.value").html();
            }

            $(document).bind('click', function(e) {
                var $clicked = $(e.target);
                if (! $clicked.parents().hasClass("dropdown"))
                    $(".dropdown dd ul").hide();
            });


            $("#flagSwitcher").click(function() {
                $(".dropdown img.flag").toggleClass("flagvisibility");
            });
        });
    </script>

    <!--</Menu>-->
</head>
<body>
    <div id="main">
        <!-- Header -->
        <?php include("view/header.php") ?>
        <!-- Header end -->
        <div id="content">
            <!-- Content box with white background and gray border -->
            <div id="content-box">
                <!-- Left column -->
                <div id="content-box-in-left">
                    <div id="content-box-in-left-in">
                        <img alt="" src="view/img/logo.png" width="180px" />
                        <br />
                        <br />
						
                        <ul class="iconlist">
                            <li class="gp"><a href="#a">Group</a> </li>
                        </ul>
                        <ul class="iconlist">
                            <li class="sub"><a href="#a">Profession</a></li>
                            <li class="sub"><a href="#a">Interest</a></li>
                            <li class="sub"><a href="#a">Education</a></li>
                        </ul>
                        <ul class="iconlist">
                            <li class="wv"><a href="#a">Vault</a></li>
                            <li class="wv"><a href="#a">Events</a></li>
                            <li class="hp"><a href="#a">Help Me</a></li>
                            <li class="an"><a href="#a">Meet</a></li>
                        </ul>
                    </div>
                    <br />
                    <div class="line">
                    </div>
                    <div class="advtbox">
                        <div class="advtboxheader">
                            Cynosure Weeb Solutions
                        </div>
                        <span class="linkweb"><a href="">cwsweb.in</a></span>
                        <div class="advtboxbody">
                            <img alt="" src="view/images/add.png" />
                            A premium WordPress theme which enables a beginner to make a money making site in
                            minutes! My name is khan, 67890 hahahh
                        </div>
                    </div>
                    <div class="line">
                    </div>
                    <div class="advtbox">
                        <div class="advtboxheader">
                            Cynosure Weeb Solutions
                        </div>
                        <span class="linkweb"><a href="">cwsweb.in</a></span>
                        <div class="advtboxbody">
                            <img alt="" src="view/images/100.jpg" />
                            A premium WordPress theme which enables a beginner to make a money making site in
                            minutes! My name is khan, 67890 hahahh
                        </div>
                    </div>
                    <div class="line">
                    </div>
                </div>
                <!-- Left column end -->
                <hr class="noscreen" />
                <!-- Left column -->
                <div id="content-box-in-mid">
                    <h2>
                        Recent uploads</h2>
                    <div id="content-box-in-mid-in">
                        <div class="boxbody">
                            <div class="box">
                            </div>
                            <div class="box">
                            </div>
                            <div class="box">
                            </div>
                            <div class="box">
                            </div>
                            <div class="box">
                            </div>
                            <div class="box">
                            </div>
                            <div class="box">
                            </div>
                            <div class="box">
                            </div>
                            <div class="box">
                            </div>
                        </div>
                        <br />
                        <div class="status">
                            <ul id="countrytabs" class="shadetabs">
                                <li><a href="#a" rel="status" class="selected">Status</a></li>
                                <li><a href="#a" rel="music">Music</a></li>
                                <li><a href="#a" rel="videos">Videos</a></li>
                                <li><a href="#a" rel="images">Images</a></li>
                                <li><a href="#a" rel="document">Documents</a></li>
                                <li><a href="#a" rel="event">Events</a></li>
                            </ul>
                            <div >
                            	<div id="status" class="tabcontent" style="border: 1px solid #BDCFD9; width: 500px; margin-bottom: 1em; padding: 15px;">
                                	<form method="post" onsubmit="return false" id="statusUpdateForm" name="statusUpdateForm">
                                    <div class="catmusic1">
                                                <input id="Radio11" name="Radio11" type="radio" class="radio" checked="checked" value="public"/>Public<input id="Radio11"
                                                    name="Radio11" type="radio" class="radio" value="private"/>Private<input id="Radio11" name="Radio11" type="radio"
                                                        class="radio" value="friends"/>Friends
                                            </div>
                                        <textarea id="statusVal" cols="20" rows="2" class="textarea" onblur="$('#Submit2').fadeOut()" onfocus="$('#Submit2').fadeIn()"></textarea>
                                        <div class="btnsty">
                                            <div class="btnstyinner">
                                                <input id="Submit2" type="submit" value="Post" class="btn" onclick="statusUpdate();return false;" style="display:none"/>
                                                <div id="statusError" style="margin-top:5px"></div>
                                            </div>
                                           
                                        </div>
                                    </form>
                                </div>
                                <div id="music" class="tabcontent"  style="border: 1px solid #BDCFD9; width: 500px; margin-bottom: 1em; padding: 15px;">
                                     <form id="uploadform" method="post" enctype="multipart/form-data" action="view/upload.php">   
                                        <div class="FileUpload">
                                            <input type="file" name="file" id="file" size="24" class="BrowserHidden" onchange="$('#Submit1').show();getElementById('textfield1').value = getElementById('file').value;" />
                                            <div class="BrowserVisible">
                                                <input type="text" class="FileField" id="textfield1" /></div>
                                            <div class="catmusic1">
                                                <input id="Radio12" name="Radio12" type="radio" class="radio" checked="checked" value="public"/>Public<input id="Radio12"
                                                    name="Radio12" type="radio" class="radio" value="private"/>Private<input id="Radio12" name="Radio12" type="radio"
                                                        class="radio" value="friends"/>Friends
                                            </div>
                                        </div> 
                                        <div>
                                        	<input type="text" id="audioTitle" name="audioTitle" class="input" style="width:93%">
                                        </div>
                                        <textarea id="textarea3" name="textarea3" cols="20" rows="2" class="textarea"></textarea>
                                        <div class="btnsty">
                                            <div class="btnstyinner">
                                                <div class="catmusic" id="musicCategory">
                                                     <form method="get" action="" class="asholder" >
                                                        <small style="float:right;display:none">Hidden ID Field: <input type="text" id="testid" value="" style="font-size: 10px; width: 20px;" disabled="disabled" /></small>
                                                        <label for="testinput">Category</label>
                                                        <input style="width: 200px" type="text" id="testinput" name="testinput" value="" class="input"/>
                                                    </form>
                                                </div>
                                                <input id="Submit1" type="submit" value="Post" class="btn" name="action" style="display:none"/>
                                            </div>
                                       	</div>
                                        <div id="musicUploadStatus" style="height:10px"></div>
                                        <iframe id="target_iframe" name="target_iframe" src="" style="width:0;height:0;border:0px"></iframe>
                                     </form>
                                </div>
                                
                                
                                
                                <div id="videos" class="tabcontent"  style="border: 1px solid #BDCFD9; width: 500px; margin-bottom: 1em; padding: 15px;">
                                    <form id="uploadVideoform" method="post" enctype="multipart/form-data" action="view/uploadVideo.php">   
                                        <div class="FileUpload">
                                            <input type="file" name="videofile" id="videofile" size="24" class="BrowserHidden" onchange="$('#Submit3').show();getElementById('videotextfield1').value = getElementById('videofile').value;" />
                                            <div class="BrowserVisible">
                                                <input type="text" class="FileField" id="videotextfield1" name="videotextfield1"/></div>
                                            <div class="catmusic1">
                                                 <input id="Radio13" name="Radio13" type="radio" class="radio" checked="checked" value="public"/>Public<input id="Radio13"
                                                    name="Radio13" type="radio" class="radio" value="private"/>Private<input id="Radio13" name="Radio13" type="radio"
                                                        class="radio" value="friends"/>Friends
                                            </div>
                                        </div> 
                                        <div>
                                        	<input type="text" id="videoTitle" name="videoTitle" class="input" style="width:93%">
                                        </div>
                                        <textarea id="textarea4" name="textarea4" cols="20" rows="2" class="textarea"></textarea>
                                        <div class="btnsty">
                                            <div class="btnstyinner">
                                                <div class="catmusic" id="videoCategory">
                                                    <form method="get" action="" class="asholder" >
                                                        <small style="float:right;display:none">Hidden ID Field: <input type="text" id="videotestid" value="" style="font-size: 10px; width: 20px;" disabled="disabled" /></small>
                                                        <label for="testinput">Category</label>
                                                        <input style="width: 200px" type="text" id="videotestinput" name="videotestinput" value="" class="input"/>
                                                    </form>
                                                </div>
                                                <input id="Submit3" type="submit" value="Post" class="btn" name="action" style="display:none"/>
                                            </div>
                                        </div><div id="videoUploadStatus" style="height:10px"></div>
                                        <iframe id="target_iframe1" name="target_iframe1" src="" style="width:0;height:0;border:0px"></iframe>
                                     </form>
                                </div>
                                
                                <div id="images" class="tabcontent"  style="border: 1px solid #BDCFD9; width: 500px; margin-bottom: 1em; padding: 15px;">
                                     <form id="uploadImageForm" method="post" enctype="multipart/form-data" action="view/uploadimage.php">   
                                        <div class="FileUpload">
                                            <input type="file" name="imageFile" id="imageFile" size="24" class="BrowserHidden" onchange="$('#Submit4').show();getElementById('textfield3').value = getElementById('imageFile').value;" />
                                            <div class="BrowserVisible">
                                                <input type="text" class="FileField" id="textfield3" /></div>
                                            <div class="catmusic1">
                                                <input id="Radio14" name="Radio14" type="radio" class="radio" checked="checked" value="public"/>Public<input id="Radio14"
                                                    name="Radio14" type="radio" class="radio" value="private"/>Private<input id="Radio14" name="Radio14" type="radio"
                                                        class="radio" value="friends"/>Friends
                                            </div>
                                        </div> 
                                        <div>
                                        	<input type="text" id="imageTitle" name="imageTitle" class="input" style="width:93%">
                                        </div>
                                        <textarea id="textarea5" name="textarea5" cols="20" rows="2" class="textarea"></textarea>
                                        <div class="btnsty">
                                            <div class="btnstyinner">
                                                <div class="catmusic" id="imageCategory">
                                                    <form method="get" action="" class="asholder" >
                                                        <small style="float:right;display:none">Hidden ID Field: <input type="text" id="imagetestid" value="" style="font-size: 10px; width: 20px;" disabled="disabled" /></small>
                                                        <label for="testinput">Category</label>
                                                        <input style="width: 200px" type="text" id="imagetestinput" name="imagetestinput" value="" class="input"/>
                                                    </form>
                                                </div>
                                                <input id="Submit4" type="submit" value="Post" class="btn" name="action" style="display:none" />
                                            </div>
                                        </div><div id="imageUploadStatus" style="height:10px"></div>
                                        <iframe id="target_iframe2" name="target_iframe2" src="" style="width:0;height:0;border:0px"></iframe>
                                     </form>
                                </div>
                                
                                <div id="document" class="tabcontent"  style="border: 1px solid #BDCFD9; width: 500px; margin-bottom: 1em; padding: 15px;">
                                     <form id="uploadDocumentForm" method="post" enctype="multipart/form-data" action="view/uploaddoc.php">   
                                        <div class="FileUpload">
                                            <input type="file" name="docFile" id="docFile" size="24" class="BrowserHidden" onchange="$('#Submit5').show();getElementById('textfield4').value = getElementById('docFile').value;" />
                                            <div class="BrowserVisible">
                                                <input type="text" class="FileField" id="textfield4" /></div>
                                            <div class="catmusic1">
                                                <input id="Radio15" name="Radio15" type="radio" class="radio" checked="checked" value="public"/>Public<input id="Radio15"
                                                    name="Radio15" type="radio" class="radio" value="private"/>Private<input id="Radio15" name="Radio15" type="radio"
                                                        class="radio" value="friends"/>Friends
                                            </div>
                                        </div> 
                                        <div>
                                        	<input type="text" id="docTitle" name="docTitle" class="input" style="width:93%">
                                        </div>
                                        <textarea id="textarea6" name="textarea6" cols="20" rows="2" class="textarea"></textarea>
                                        <div class="btnsty">
                                            <div class="btnstyinner">
                                                <div class="catmusic" id="docCategory">
                                                    <form method="get" action="" class="asholder" >
                                                        <small style="float:right;display:none">Hidden ID Field: <input type="text" id="doctestid" value="" style="font-size: 10px; width: 20px;" disabled="disabled" /></small>
                                                        <label for="testinput">Category</label>
                                                        <input style="width: 200px" type="text" id="doctestinput" name="doctestinput" value="" class="input"/>
                                                    </form>
                                                </div>
                                                <input id="Submit5" type="submit" value="Post" class="btn" name="action" style="display:none" />
                                            </div>
                                        </div><div id="docUploadStatus" style="height:10px"></div>
                                        <iframe id="target_iframe3" name="target_iframe3" src="" style="width:0;height:0;border:0px"></iframe>
                                     </form>
                                </div>

                                <div id="event" class="tabcontent"  style="border: 1px solid #BDCFD9; width: 500px; margin-bottom: 1em; padding: 15px;">
                                    <table>
                                        <tr>
                                            <td>
                                                Name
                                            </td>
                                            <td>
                                                <input id="Text5" class="input" type="text" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Details
                                            </td>
                                            <td>
                                                <input id="Text6" class="input" type="text" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Place
                                            </td>
                                            <td>
                                                <input id="Text7" class="input" type="text" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Date
                                            </td>
                                            <td>
                                                <input id="Text8" class="input" type="text" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Upload Image
                                            </td>
                                            <td>
                                                <div class="FileUpload">
                                                    <input type="file" size="24" class="BrowserHidden" onchange="getElementById('FileField').value = getElementById('BrowserHidden').value;" />
                                                    <div class="BrowserVisible">
                                                        <input type="text" class="FileField" /></div>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Privacy
                                            </td>
                                            <td>
                                                <div class="catmusic" style="float: left">
                                                    <!--selectBox-->
                                                    <!--selectBox-->
                                                    <select id="Select6" class="select">
                                                    	<option>Select Category</option>
                                                        <option disabled="disabled" style="font-weight:bold">Buisness </option>
                                                        <option value="5">Buisness Concepts</option>
                                                        <option value="6">Buisness Peaople</option>
                                                        <option disabled="disabled" style="font-weight:bold">Food and Drink</option>
                                                        <option value="1">Food Drinks</option>
                                                        <option value="2" >Alcohol</option>
                                                        <option value="3">BakingFood</option>
                                                        <option value="4">EquipmentMeat And Alternatives</option>
                                                    </select>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <a href="">Add</a>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                    </table>
                                    <div class="btnsty">
                                        <div class="btnstyinner">
                                            <input id="Submit6" type="submit" value="Create Event" class="btn" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--For tab-->

                            <script type="text/javascript">
									
									var countries=new ddtabcontent("countrytabs")
									countries.setpersist(true)
									countries.setselectedClassTarget("link") //"link" or "linkparent"
									countries.init()

                            </script>

                            <!--For tab End-->
                            <!--<textarea_autoexpand>-->

                            <script type="text/javascript">
		                           // $('#statusVal').autoresize();
									$('#textarea3').autoresize();
									$('#textarea4').autoresize();
									$('#textarea5').autoresize();
									$('#textarea6').autoresize();
		                            $('#statusVal').autoresize({
			                            animate: false,
			                            buffer: 2,
			                            onresize: function() {
				                            $('#message').stop(true, true).hide()
					                            .text('Resized to '+$(this).height())
					                            .fadeIn('slow', function() {
						                            $(this).fadeOut();
					                            });
			                            }
		                            });
                            </script>

                            <!--</textarea _End>-->
                        </div>
                        <div class="comment">
                            <div id="statusList">
									
								<?php
									if($userStatus == "")
									{
										echo "You are a new user";
									}
									else
									{
										foreach($userStatus as $row)
										{
										
											if($row['privacy'] == '0')
											{
												$prStatus = "private";
											}
											elseif($row['privacy'] == '1')
											{
												$prStatus = "friends";
											}
											elseif($row['privacy'] == '2')
											{
												$prStatus = "public";
											}
											if($row['type'] == 'status')
											{
												
										 ?>	
												<div class="maincmtbox">
													<div class="topholder">
														<div class="cname">
															<a href="" class="linkname"><?php echo $row['fullname']; ?></a>
														</div>
													</div>
													<div class="cmtbox">
													</div>
													<div class="cmntbox">
														<?php echo $row['comment']; ?>
													</div>
													<div class="ldscbox">
                                                    	<?php
															if($row['likes'] != 1)
															{ 
														?>
																 <?php   
                                                                    if($row['dislikes'] != 1)
                                                                { 
                                                            ?>
                                                                    <span id="like<?php echo $row['id']; ?>"><span class="spn"><a href="#a" onclick="likeStatus(<?php echo $row['id']; ?>)">Like-</a><span id="statusLike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['like']; ?></span></span></span>
                                                                    <span id="dislike<?php echo $row['id']; ?>"><span class="spn"><a href="#a" onclick="dislikeStatus(<?php echo $row['id']; ?>)">Dislike-</a><span id="statusDislike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['dislike']; ?></span></span></span>
                                                            <?php 
                                                                }
                                                                else
                                                                {
                                                                    ?>
                                                                    <span><span class="spn spancount">Like-<?php echo $row['like']; ?></span></span>
                                                                    <span id="dislike<?php echo $row['id']; ?>"><span class="spn"><img src="view/img/icons/Tick.png"><a href="#a" onclick="undislikeStatus(<?php echo $row['id']; ?>)">Dislike-</a><span id="statusDislike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['dislike']; ?></span></span></span>
                                                                    <?php
                                                                }
															}
															else
															{
																?>
																<span id="like<?php echo $row['id']; ?>"><span class="spn"><img src="view/img/icons/Tick.png"><a href="#a" onclick="unlikeStatus(<?php echo $row['id']; ?>)">Like-</a><span id="statusLike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['like']; ?></span></span></span>
                                                                <span><span class="spn spancount">Dislike-<?php echo $row['dislike']; ?></span></span>
                                                                <?php
															}
														?>
														
														<span class="spn"><a href="#a" onclick="$('#comment<?php echo $row['id']?>').focus();showComment(<?php echo $row['id']; ?>)">Comment-</a><span id="statusComment<?php echo $row['id']; ?>" class="spancount"><?php echo $row['comments']; ?></span></span>
														<?php
															if($_SESSION['user_id'] != $row['user_id'])
															{ 
														?>
                                                        		<span class="spn"><a href="#a" onclick="shareDoc(<?php echo $row['id']; ?>)">Share</a></span>
                                                        <?php
															}
														?>
														<div class="cnamedetails">
                                                        	<?php echo $prStatus; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
															<?php echo $row['update_time']; ?> ago <a href="">
															</a>
														</div>
													</div>
												</div>
												<div class="subcommented" id="commentbox<?php echo $row['id']; ?>">
<!--                                                	<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname">Bhavika Thakkar</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>
-->                                                    
													<!--<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname">Anil Yadav</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>
													
													<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname">Bhavika Thakkar</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>-->
												 </div> 
								   
												<div class="subcomment"> 
													<div class="commenta">
														<div class="cmtboxsub">
														</div>
														<textarea id="comment<?php echo $row['id']; ?>" cols="20" rows="1" class="textareainner" placeholder="Write here !!!" onkeyup="if(event.keyCode == 13) sendComment(<?php echo $row['id']; ?>);"></textarea>
													</div>
												</div> 
									<?php
											}
											elseif($row['type'] == 'music')
											{
									?>
												<div class="maincmtbox">
													<div class="topholder">
														<div class="cname">
															<a href="" class="linkname"><?php echo $row['fullname']; ?></a>
														</div>
													</div>
													<div class="cmtbox">
													</div>
													<div class="cmntbox">
														 <div class="promoboxbody">
															<span><?php echo $row['place']; ?></span>
															<div class="views"><?php echo $row['comment']; ?></div>
															<img alt="" src="view/img/icons/mp3.png" />
														</div>
													</div>
													<div class="ldscbox">
														<?php
															if($row['likes'] != 1)
															{ 
														?>
																 <?php   
                                                                    if($row['dislikes'] != 1)
                                                                { 
                                                            ?>
                                                                    <span id="like<?php echo $row['id']; ?>"><span class="spn"><a href="#a" onclick="likeStatus(<?php echo $row['id']; ?>)">Like-</a><span id="statusLike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['like']; ?></span></span></span>
                                                                    <span id="dislike<?php echo $row['id']; ?>"><span class="spn"><a href="#a" onclick="dislikeStatus(<?php echo $row['id']; ?>)">Dislike-</a><span id="statusDislike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['dislike']; ?></span></span></span>
                                                            <?php 
                                                                }
                                                                else
                                                                {
                                                                    ?>
                                                                    <span><span class="spn spancount">Like-<?php echo $row['like']; ?></span></span>
                                                                    <span id="dislike<?php echo $row['id']; ?>"><span class="spn"><img src="view/img/icons/Tick.png"><a href="#a" onclick="undislikeStatus(<?php echo $row['id']; ?>)">Dislike-</a><span id="statusDislike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['dislike']; ?></span></span></span>
                                                                    <?php
                                                                }
															}
															else
															{
																?>
																<span id="like<?php echo $row['id']; ?>"><span class="spn"><img src="view/img/icons/Tick.png"><a href="#a" onclick="unlikeStatus(<?php echo $row['id']; ?>)">Like-</a><span id="statusLike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['like']; ?></span></span></span>
                                                                <span><span class="spn spancount">Dislike-<?php echo $row['dislike']; ?></span></span>
                                                                <?php
															}
														?>
														
														<span class="spn"><a href="#a" onclick="$('#comment<?php echo $row['id']?>').focus();showComment(<?php echo $row['id']; ?>)">Comment-</a><span id="statusComment<?php echo $row['id']; ?>" class="spancount"><?php echo $row['comments']; ?></span></span>
														<?php
															if($_SESSION['user_id'] != $row['user_id'])
															{ 
														?>
                                                        		<span class="spn"><a href="#a" onclick="shareDoc(<?php echo $row['id']; ?>)">Share</a></span>
                                                        <?php
															}
														?>
														<div class="cnamedetails">
                                                        	<?php echo $prStatus; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
															<?php echo $row['update_time']; ?> ago <a href="">
															</a>
														</div>
													</div>
												 </div>
												 <div class="subcommented" id="commentbox<?php echo $row['id']; ?>">
														<!--<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname"><?php echo $comment[$row['id']]['fullname']; ?></a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>
													<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname">Anil Yadav</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>
													
													<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname">Bhavika Thakkar</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>-->
												 </div> 
												
												<div class="subcomment"> 
													<div class="commenta">
														<div class="cmtboxsub">
														</div>
														<textarea id="comment<?php echo $row['id']; ?>" cols="20" rows="1" class="textareainner" placeholder="Write here !!!"></textarea>
													</div>
												</div> 
												 
									 <?php
											}
											elseif($row['type'] == 'video')
											{
									?>
									
									
												<div class="maincmtbox">
													<div class="topholder">
														<div class="cname">
															<a href="" class="linkname"><?php echo $row['fullname']; ?></a>
														</div>
													</div>
													<div class="cmtbox">
													</div>
													<div class="cmntbox">
														 <div class="promoboxbody">
															<span><?php echo $row['place']; ?></span>
															<div class="views"><?php echo $row['comment']; ?></div>
															<img alt="" src="view/img/icons/video.png" />
														</div>
													</div>
													<div class="ldscbox">
														<?php
															if($row['likes'] != 1)
															{ 
														?>
																 <?php   
                                                                    if($row['dislikes'] != 1)
                                                                { 
                                                            ?>
                                                                    <span id="like<?php echo $row['id']; ?>"><span class="spn"><a href="#a" onclick="likeStatus(<?php echo $row['id']; ?>)">Like-</a><span id="statusLike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['like']; ?></span></span></span>
                                                                    <span id="dislike<?php echo $row['id']; ?>"><span class="spn"><a href="#a" onclick="dislikeStatus(<?php echo $row['id']; ?>)">Dislike-</a><span id="statusDislike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['dislike']; ?></span></span></span>
                                                            <?php 
                                                                }
                                                                else
                                                                {
                                                                    ?>
                                                                    <span><span class="spn spancount">Like-<?php echo $row['like']; ?></span></span>
                                                                    <span id="dislike<?php echo $row['id']; ?>"><span class="spn"><img src="view/img/icons/Tick.png"><a href="#a" onclick="undislikeStatus(<?php echo $row['id']; ?>)">Dislike-</a><span id="statusDislike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['dislike']; ?></span></span></span>
                                                                    <?php
                                                                }
															}
															else
															{
																?>
																<span id="like<?php echo $row['id']; ?>"><span class="spn"><img src="view/img/icons/Tick.png"><a href="#a" onclick="unlikeStatus(<?php echo $row['id']; ?>)">Like-</a><span id="statusLike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['like']; ?></span></span></span>
                                                                <span><span class="spn spancount">Dislike-<?php echo $row['dislike']; ?></span></span>
                                                                <?php
															}
														?>
														
														<span class="spn"><a href="#a" onclick="$('#comment<?php echo $row['id']?>').focus();showComment(<?php echo $row['id']; ?>)">Comment-</a><span id="statusComment<?php echo $row['id']; ?>" class="spancount"><?php echo $row['comments']; ?></span></span>
														<?php
															if($_SESSION['user_id'] != $row['user_id'])
															{ 
														?>
                                                        		<span class="spn"><a href="#a" onclick="shareDoc(<?php echo $row['id']; ?>)">Share</a></span>
                                                        <?php
															}
														?>
														<div class="cnamedetails">
                                                        	<?php echo $prStatus; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
															<?php echo $row['update_time']; ?> ago <a href="">
															</a>
														</div>
														
													</div>
												 </div> 
												 <div class="subcommented" id="commentbox<?php echo $row['id']; ?>">
														<!--<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname"><?php echo $comment[$row['id']]['fullname']; ?></a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>
													<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname">Anil Yadav</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>
													
													<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname">Bhavika Thakkar</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>-->
												 </div> 
												
												<div class="subcomment"> 
													<div class="commenta">
														<div class="cmtboxsub">
														</div>
														<textarea id="comment<?php echo $row['id']; ?>" cols="20" rows="1" class="textareainner" placeholder="Write here !!!" onkeyup="if(event.keyCode == 13) sendComment(<?php echo $row['id']; ?>);"></textarea>
													</div>
												</div>  
												
												
												<!--<div class="commentare">
														<div class="cmtboxsubre"></div>
														<span class="cmntboxre"><a href="" class="linknamere">Bhavika Thakkar</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
															Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscboxre">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>
												
												<div class="subcomment"> 
													<div class="commentare">
														<div class="cmtboxsubre">
														</div>
														<textarea id="textarea2" cols="20" rows="1" class="textareainneropp" placeholder="Write here !!!"></textarea>
													</div>
												</div>-->
												 
									 <?php
											}
											elseif($row['type'] == 'image')
											{
									?>
												<div class="maincmtbox">
													<div class="topholder">
														<div class="cname">
															<a href="" class="linkname"><?php echo $row['fullname']; ?></a>
														</div>
													</div>
													<div class="cmtbox">
													</div>
													<div class="cmntbox">
														 <div class="promoboxbodymid">
															<img alt="" src="view/tmp/<?php echo $_SESSION['user_id']?>/image/<?php echo $row['url']; ?>" class="postcontentimg"/>
														</div>
													</div>
													 <div class="postcontent">
														  <img alt="" src="view/img/icons/pics.png" align="middle" style="float:left"/><div class="filename"><?php echo $row['place']; ?> </div><br clear="all"/>
																<div class="commenttextinner"><?php echo $row['comment']; ?></div>
																
															</div>
													<div>
                                                    <div class="ldscbox">
                                                     <?php
															if($row['likes'] != 1)
															{ 
														?>
																 <?php   
                                                                    if($row['dislikes'] != 1)
                                                                { 
                                                            ?>
                                                                    <span id="like<?php echo $row['id']; ?>"><span class="spn"><a href="#a" onclick="likeStatus(<?php echo $row['id']; ?>)">Like-</a><span id="statusLike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['like']; ?></span></span></span>
                                                                    <span id="dislike<?php echo $row['id']; ?>"><span class="spn"><a href="#a" onclick="dislikeStatus(<?php echo $row['id']; ?>)">Dislike-</a><span id="statusDislike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['dislike']; ?></span></span></span>
                                                            <?php 
                                                                }
                                                                else
                                                                {
                                                                    ?>
                                                                    <span><span class="spn spancount">Like-<?php echo $row['like']; ?></span></span>
                                                                    <span id="dislike<?php echo $row['id']; ?>"><span class="spn"><img src="view/img/icons/Tick.png"><a href="#a" onclick="undislikeStatus(<?php echo $row['id']; ?>)">Dislike-</a><span id="statusDislike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['dislike']; ?></span></span></span>
                                                                    <?php
                                                                }
															}
															else
															{
																?>
																<span id="like<?php echo $row['id']; ?>"><span class="spn"><img src="view/img/icons/Tick.png"><a href="#a" onclick="unlikeStatus(<?php echo $row['id']; ?>)">Like-</a><span id="statusLike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['like']; ?></span></span></span>
                                                                <span><span class="spn spancount">Dislike-<?php echo $row['dislike']; ?></span></span>
                                                                <?php
															}
														?>
														
														<span class="spn"><a href="#a" onclick="$('#comment<?php echo $row['id']?>').focus();showComment(<?php echo $row['id']; ?>)">Comment-</a><span id="statusComment<?php echo $row['id']; ?>" class="spancount"><?php echo $row['comments']; ?></span></span>
														<?php
															if($_SESSION['user_id'] != $row['user_id'])
															{ 
														?>
                                                        		<span class="spn"><a href="#a" onclick="shareDoc(<?php echo $row['id']; ?>)">Share</a></span>
                                                        <?php
															}
														?>
                                                    
														<div class="cnamedetails">
                                                        	<?php echo $prStatus; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
															<?php echo $row['update_time']; ?> ago <a href="">
															</a>
														</div>
														</div>
													</div>
												 </div> 
												 <div class="subcommented" id="commentbox<?php echo $row['id']; ?>">
														<!--<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname"></a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>
													<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname">Anil Yadav</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>
													
													<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname">Bhavika Thakkar</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>-->
												 </div> 
												
												<div class="subcomment"> 
													<div class="commenta">
														<div class="cmtboxsub">
														</div>
														<textarea id="comment<?php echo $row['id']; ?>" cols="20" rows="1" class="textareainner" placeholder="Write here !!!" onkeyup="if(event.keyCode == 13) sendComment(<?php echo $row['id']; ?>);"></textarea>
													</div>
												</div>  
												
												
												<!--<div class="commentare">
														<div class="cmtboxsubre"></div>
														<span class="cmntboxre"><a href="" class="linknamere">Bhavika Thakkar</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
															Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscboxre">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>
												
												<div class="subcomment"> 
													<div class="commentare">
														<div class="cmtboxsubre">
														</div>
														<textarea id="textarea2" cols="20" rows="1" class="textareainneropp" placeholder="Write here !!!"></textarea>
													</div>
												</div>-->
												 
									 <?php
											}
											
											elseif($row['type'] == 'doc')
											{
									?>
												<div class="maincmtbox">
													<div class="topholder">
														<div class="cname">
															<a href="" class="linkname"><?php echo $row['fullname']; ?></a>
														</div>
													</div>
													<div class="cmtbox">
													</div>
													<div class="cmntbox">
														 <div class="promoboxbody">
															<span><?php echo $row['place']; ?></span>
															<div class="views"><?php echo $row['comment']; ?></div>
															<img alt="" src="view/img/icons/doc.png" />
														</div>
													</div>
													<div class="ldscbox">
														<?php
															if($row['likes'] != 1)
															{ 
														?>
																 <?php   
                                                                    if($row['dislikes'] != 1)
                                                                { 
                                                            ?>
                                                                    <span id="like<?php echo $row['id']; ?>"><span class="spn"><a href="#a" onclick="likeStatus(<?php echo $row['id']; ?>)">Like-</a><span id="statusLike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['like']; ?></span></span></span>
                                                                    <span id="dislike<?php echo $row['id']; ?>"><span class="spn"><a href="#a" onclick="dislikeStatus(<?php echo $row['id']; ?>)">Dislike-</a><span id="statusDislike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['dislike']; ?></span></span></span>
                                                            <?php 
                                                                }
                                                                else
                                                                {
                                                                    ?>
                                                                    <span><span class="spn spancount">Like-<?php echo $row['like']; ?></span></span>
                                                                    <span id="dislike<?php echo $row['id']; ?>"><span class="spn"><img src="view/img/icons/Tick.png"><a href="#a" onclick="undislikeStatus(<?php echo $row['id']; ?>)">Dislike-</a><span id="statusDislike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['dislike']; ?></span></span></span>
                                                                    <?php
                                                                }
															}
															else
															{
																?>
																<span id="like<?php echo $row['id']; ?>"><span class="spn"><img src="view/img/icons/Tick.png"><a href="#a" onclick="unlikeStatus(<?php echo $row['id']; ?>)">Like-</a><span id="statusLike<?php echo $row['id']; ?>" class="spancount"><?php echo $row['like']; ?></span></span></span>
                                                                <span><span class="spn spancount">Dislike-<?php echo $row['dislike']; ?></span></span>
                                                                <?php
															}
														?>
														
														<span class="spn"><a href="#a" onclick="$('#comment<?php echo $row['id']?>').focus();showComment(<?php echo $row['id']; ?>)">Comment-</a><span id="statusComment<?php echo $row['id']; ?>" class="spancount"><?php echo $row['comments']; ?></span></span>
														<?php
															if($_SESSION['user_id'] != $row['user_id'])
															{ 
														?>
                                                        		<span class="spn"><a href="#a" onclick="shareDoc(<?php echo $row['id']; ?>)">Share</a></span>
                                                        <?php
															}
														?>
														<div class="cnamedetails">
                                                        	<?php echo $prStatus; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
															<?php echo $row['update_time']; ?> ago <a href="">
															</a>
														</div>
														
													</div>
												 </div> 
												 <div class="subcommented" id="commentbox<?php echo $row['id']; ?>">
                                                 
                                                   <!-- <div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname">Bhavika Thakkar</a>Comment comment comment
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																Time ago <a href="">
																</a>
															</div>
														</div>
													</div>
                                                    
                                                    <div class="commentare">
														<div class="cmtboxsubre"></div>
														<span class="cmntboxre"><a href="" class="linknamere">Bhavika Thakkar</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
															Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscboxre">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>
                                                    <div id="subcommentBox">
                                                        <div class="subcomment"> 
                                                        <div class="commentare">
                                                            <div class="cmtboxsubre">
                                                            </div>
                                                            <textarea id="textarea2" cols="20" rows="1" class="textareainneropp" placeholder="Write here !!!"></textarea>
                                                        </div>
                                                    </div>
												</div>-->
													<!--<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname">Anil Yadav</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>
													
													<div class="commenta">
														<div class="cmtboxsub"></div>
														<span class="cmntbox"><a href="" class="linkname">Bhavika Thakkar</a> Posted comment here
															!!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
														</span>
														<div class="ldscbox">
															<span class="spn"><a href="">Like-3654</a></span>
															<span class="spn"><a href="">Dislike-36</a></span>
															<span class="spn"><a href="">Share</a></span>
															<span class="spn"><a href="">Reply</a></span>
															<div class="cnamedetails">
																1 min ago <a href="">
																</a>
															</div>
														</div>
													</div>-->
												 </div> 
	
																	
                                                <div class="subcomment"> 
													<div class="commenta">
														<div class="cmtboxsub">
														</div>
														<textarea id="comment<?php echo $row['id']; ?>" cols="20" rows="1" class="textareainner" placeholder="Write here !!!" onkeyup="if(event.keyCode == 13) sendComment(<?php echo $row['id']; ?>);"></textarea>
													</div>
												</div>  
												<?php
														}
													}
												?>
												 
									 <?php
									}
								?>
                            </div>
                            <!--<div class="commenta">
                                <div class="cmtboxsub">
                                </div>
                                <span class="cmntbox"><a href="" class="linkname">Anil Yadav</a> Posted comment here
                                    !!! Posted comment here !!! Posted comment here !!! Posted comment here !!! Posted
                                    comment here !!! Posted comment here !!! Posted comment here !!! Posted comment
                                    here !!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
                                    Posted comment here !!! Posted comment here !!! Posted comment here !!! Posted comment
                                    here !!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
                                </span>
                                <div class="ldscbox">
                                    <span class="spn"><a href="">Like-3654</a></span>
                                    <span class="spn"><a href="">Dislike-36</a></span>
                                    <span class="spn"><a href="">Share</a></span>
                                    <span class="spn"><a href="">Reply</a></span>
                                    <div class="cnamedetails">
                                        1 min ago <a href="">
                                        </a>
                                    </div>
                                </div>
                            </div>-->
                            <!--<div class="commenta">
                                <div class="cmtboxsub">
                                </div>
                                <span class="cmntbox"><a href="" class="linkname">Anil Yadav</a> Posted comment here
                                    !!! Posted comment here !!! Posted comment here !!! Posted comment here !!! Posted
                                    comment here !!! Posted comment here !!! Posted comment here !!! Posted comment
                                    here !!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
                                    Posted comment here !!! Posted comment here !!! Posted comment here !!! Posted comment
                                    here !!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
                                </span>
                                <div class="ldscbox">
                                    <span class="spn"><a href="">Like-3654</a></span>
                                    <span class="spn"><a href="">Dislike-36</a></span>
                                    <span class="spn"><a href="">Share</a></span>
                                    <span class="spn"><a href="">Reply</a></span>
                                    <div class="cnamedetails">
                                        1 min ago <a href="">
                                        </a>
                                    </div>
                                </div>
                            </div>-->
                            <!--<div class="commenta">
                                <div class="cmtboxsub">
                                </div>
                                <span class="cmntbox"><a href="" class="linkname">Anil Yadav</a> Posted comment here
                                    !!! Posted comment here !!! Posted comment here !!! Posted comment here !!! Posted
                                    comment here !!! Posted comment here !!! Posted comment here !!! Posted comment
                                    here !!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
                                    Posted comment here !!! Posted comment here !!! Posted comment here !!! Posted comment
                                    here !!! Posted comment here !!! Posted comment here !!! Posted comment here !!!
                                </span>
                                <div class="ldscbox">
                                    <span class="spn"><a href="">Like-3654</a></span>
                                    <span class="spn"><a href="">Dislike-36</a></span>
                                    <span class="spn"><a href="">Share</a></span>
                                    <span class="spn"><a href="">Reply</a></span>
                                    <div class="cnamedetails">
                                        1 min ago <a href="">
                                        </a>
                                    </div>
                                </div>
                            </div>-->
                        </div>
                    </div>
                </div>
                <!-- Left column end -->
                <hr class="noscreen" />
                <!-- Right column -->
                <div id="content-box-in-right">
                    <br />
                    <div class="line">
                    </div>
                    <div class="promobox">
                        <div class="promoboxbody">
                            <img alt="" src="view/images/video.jpg" />
                            <span>Chand Chhupa Badal Mein song - Hum Dil </span>
                            <div class="views">
                                views 10,120,12</div>
                            <img alt="" src="view/img/icons/video.png" />
                        </div>
                    </div>
                    <div class="line">
                    </div>
                    <div class="promoboximg">
                        <div class="promoboxbody">
                            <img alt="" src="view/images/img.jpg" />
                            <span>Chand Chhupa Badal Mein song - Hum Dil </span>
                            <div class="views">
                                views 10,120,12</div>
                            <img alt="" src="view/img/icons/pics.png" />
                        </div>
                    </div>
                    <div class="line">
                    </div>
                    <div class="promobox">
                        <div class="promoboxbody">
                            <img alt="" src="view/images/mp3.jpg" />
                            <span>Chand Chhupa Badal Mein song - Hum Dil </span>
                            <div class="views">
                                views 10,120,12</div>
                            <img alt="" src="view/img/icons/mp3.png" />
                        </div>
                    </div>
                    <div class="line">
                    </div>
                    <div class="advtbox">
                    </div>
                </div>
                <div class="cleaner">
                    &nbsp;</div>
                <!-- Right column end -->
            </div>
            <!-- Content box with white background and gray border end -->
        </div>
        <hr class="noscreen" />
        <!-- Footer -->
       <?php include("footer.php"); ?>
        <!-- Footer end -->
    </div>
</body>
</html>
